Skip to content

async await in getInitialProps#3

Open
rombiee wants to merge 1 commit into
possibilities:masterfrom
rombiee:master
Open

async await in getInitialProps#3
rombiee wants to merge 1 commit into
possibilities:masterfrom
rombiee:master

Conversation

@rombiee
Copy link
Copy Markdown

@rombiee rombiee commented Jun 26, 2017

What this PR fixes?

If there is some AJAX call made in the server-rendered pages, the promise remains pending while the same page is wrapped in HOCs ultimately leading to the response data being unavailable.

So I have made getInitialProps in HOCs asynchronous. Hope it helps.

Also, thanks for this great project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant